﻿@page "/login"
@layout Layout.EmptyLayout
<div class="row col-3 offset-5">
    <h1 class="text-center">
        登录
    </h1>
    <form action="api/auth/sign-in?returnUrl=@ReturnUrl" method="post">
        <div class="col-12 mb-3">
            <label class="form-label">用户名</label>
            <input type="text" class="form-control" name="UserName"/>
        </div>
        <div class="col-12 mb-3">
            <label class="form-label">密码</label>
            <input type="password" class="form-control" name="Password" />
        </div>
        <div class="col-12 mb-3">
            <button class="btn btn-primary" type="submit">登录</button>
        </div>
    </form>
</div>

@code{
    [SupplyParameterFromQuery]
    [Parameter]public string? ReturnUrl{get;set;}
}